<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<div style="width: 800px">
        <p align="center">冲冲冲</p>
    <div style="width: 800px">
        评论
        <form action="/add" method="post">
            <p id="id" th:name="id" hidden></p>
            <p id="parentid" th:name="parentid" hidden></p>
            <textarea style="height: 92px;width: 690px;" placeholder="请写下自己的想法"spellcheck="false" name="content" id="content">
             </textarea>
            <button type="submit" th:align="center">冲冲冲</button>
        </form>
    </div>
    <div th:each="comments:${list}">
        <div th:text="${comments.id}" style="display: none"></div>
        <div th:text="${comments.getUserid()}" style="display: none"></div>
        <p><span th:text="${comments.getNickname()}"></span> &nbsp;&nbsp;<span th:text="${comments.getCreatedatetime()}"></span></p>
        <div th:text="${comments.getContent()}"></div>
        <p STYLE="padding-left: 450px"> 点赞 <span th:text="${comments.getLikenum()}"></span><a th:href="@{/del/(id=${comments.getId()})}">&nbsp;删除</a></p>
        <div>
            <div>
                <a href="#" >回复·</a><a href="#" id="but"><span th:text="${comments.getReplynum()}"></span>>>></a>

            </div>
        </div>
        <hr>
    </div>

</div>

</body>
</html>